canScrollHorizontally

open fun canScrollHorizontally(view: View, direction: Int): Boolean(source)

Deprecated

Use canScrollHorizontally directly.

Check if this view can be scrolled horizontally in a certain direction.

Return

true if this view can be scrolled in the specified direction, false otherwise.

Parameters

view

The View against which to invoke the method.

direction

Negative to check scrolling left, positive to check scrolling right.